.chart-container {
  position: relative;
  width: 100%;
  z-index: 1;

  .tooltip {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    min-width: 260px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 10;
  }

  .tooltip-date {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 30px;
  }

  .tooltip-row {
    display: flex;
    align-items: center;
    font-size: 26px;
    &:not(:last-child) {
      margin-bottom: 16px;
    }
    color: #4a4a4a;

    .tooltip-value {
      margin-left: auto;
      color: #000;
    }
    .tooltip-unit {
      margin-left: 4px;
    }
  }

  .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 16px;
    &.blue {
      background: #0a7aff;
    }
    &.green {
      background: #34c759;
    }
    &.orange {
      background: #ff9500;
    }
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    user-select: none;
  }

  .legend-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;

    font-family: PingFangSC-Regular;
    font-size: 24px;
    color: #7c7c7c;
    letter-spacing: 0;
    line-height: 32px;
    font-weight: 400;

    &:active {
      opacity: 0.8;
    }

    &.disabled {
      background: #f1f2f5;
      color: #9aa1ad;

      .dot.blue,
      .dot.green,
      .dot.orange {
        background: transparent;
        border: 2px solid currentColor;
        width: 14px;
        height: 14px;
      }
    }
  }

  .chart-row {
    position: relative;
  }

  .chart-fixed-y-wrap {
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .chart-fixed-y {
    position: relative;
    z-index: 2;
    // background: #fff;
  }

  .chart-content-scroll {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
  }
}
